/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.base;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author SSANCHEZ
 */
public class ConexionOracle {
    
    public Connection Conectar() throws ClassNotFoundException {
        String user="suase";
        String pass="suase";
        String databaseURL="jdbc:oracle:thin:@192.168.37.34:1521:ESPEJOD";
        Connection connection = null;
        Class.forName("oracle.jdbc.driver.OracleDriver");
        try {
            connection=DriverManager.getConnection(databaseURL, user, pass);
        } catch (SQLException ex) {
            Logger.getLogger(ConexionOracle.class.getName()).log(Level.SEVERE, null, ex);
        }
        return connection;
    }
}
